/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gradius.Elementos.Naves;

import gradius.InterfaceGrafica.TelaGrafica;
import java.awt.Image;

/**
 *
 * @author Eduardo
 */

public class Explosao extends NaveAnimada
{
    private int lifeTime = 0;
    public Explosao(TelaGrafica tela, Image[] imagens, int coordX, int coordY, int tamX, int tamY)
    {
        super(tela,imagens, coordX, coordY, tamX, tamY);
        this.setVidaNave(1);
        this.setIncrX(0);
        this.setIncrY(0);
    }

    public void incrementaLifeTime()
    {
        lifeTime++;
    }

    public boolean acabou ()
    {
        if (lifeTime >= 5)
        {
            return true;
        }
        return false;
    }
}
